// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from './store/index'
import * as echarts from 'echarts'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/style/global.scss'
import {router} from './router'
import dataV from '@jiaminghi/data-view'
import viewCard from "@/components/common/ViewCard";
import {
  getRequest,
  postRequest
} from './util/requests/requests'

Vue.component("viewCard",viewCard)
Vue.prototype.$echarts = echarts;
Vue.prototype.$getRequest = getRequest;
Vue.prototype.$postRequest = postRequest
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(dataV)

new Vue({
  el: '#app',
  router,
  store,
  components: {App},
  template: '<App/>'

})
